<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<%@ taglib prefix="zjf" uri="http://www.zjf.com.cn/mytag"  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
</head>
<body>
<ul>
<c:forEach items="${datas}" var="data">

		<li>
		<c:if test="${data.visible==false}">
			<font size="5"><font color=gray><i><del>${data.name}</del></i></font></font><html:link action="/control/plat/platTypeView.do?id=${data.id}">修改</html:link>		
		</c:if>
		<c:if test="${data.visible==true}">
			<font size="5"><b>${data.name}</b></font><html:link action="/control/plat/platTypeView.do?id=${data.id}">修改</html:link>
		</c:if>
	
			<c:forEach items="${data.plats}" var="plat">
				<c:if test="${plat.parent==null}">
					<c:if test="${plat.visible==false}">
					<br> <font color=gray><i><del>${plat.name}</del></i></font><html:link action="/control/plat/platView.do?id=${plat.id}">修改</html:link>|<html:link action="/control/plat/platDelete.do?id=${plat.id}">删除</html:link>
					</c:if>
					<c:if test="${plat.visible==true}">
					<br>${plat.name}
					<html:link action="/control/plat/platView.do?parent_id=${plat.id}">建立子类</html:link>|
					<html:link action="/control/plat/platView.do?id=${plat.id}">修改</html:link>|
					<html:link action="/control/plat/platDelete.do?id=${plat.id}">删除</html:link>
					</c:if>
					
					<zjf:treeShow plat="${plat}"/>
				</c:if>
			</c:forEach>
		
		</li>
</c:forEach>
</ul>
</body>
</html>